package com.zyx.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyx.yygh.model.order.OrderInfo;
import com.zyx.yygh.vo.order.OrderCountQueryVo;
import com.zyx.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * @author zyx
 * @version 1.0
 * @date 2022/1/24 024 10:38
 */
public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrder(String orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    void patientTips();

    boolean cancelOrder(Long orderId);

    /**
     * 预约统计
     */
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
